#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QStackedLayout>
#include <QLabel>
#include <QMovie>

class UserList;
class UserCount;
class MailServer;

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
public slots:
   void menuTriggered(QAction* action);

private:
    Ui::MainWindow  *ui;
    UserList        *m_userlist;
    UserCount       *m_usercount;
    QWidget         *m_cur;
    MailServer      *m_mailserver;
    QStackedLayout  m_layout;
 //   QLabel          m_loading;
  //  QMovie          m_movie;
};

#endif // MAINWINDOW_H
